#include <QtPlugin>
#include "Editors.h"
#include "Include/IEditor.h"
#include "DesignerContainer.h"
#include "Designer.h"

namespace Plugins
{

IEditor * Editors::createEditor(EditorType /*type*/, QWidget * parent)
{
    return new DesignerContainer(new Designer(parent), parent, _project);
}

void Editors::setProject(Project *prj)
{
    _project = prj;
}

}

Q_EXPORT_PLUGIN2(texteditor, Plugins::Editors)
